﻿using CHSystemApi.Framework.Extension;
using System;
using System.Collections.Generic;
using System.Text;

namespace CHSystemApi.Framework.Base
{
    /// <summary>
    /// 自定义异常基类
    /// </summary>
    public class BaseException : Exception
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public StatusCode _code { get; set; }

        public BaseException(StatusCode code, string msg) : base(msg)
        {
            _code = code;
        }

        public BaseException(StatusCode code)
        {

        }
    }
}
